package per.poker.chedapao;

import javafx.scene.layout.FlowPane;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author ：yunjia
 * @date ：2023/11/9 11:03
 * @description：
 * @modified By：
 * @version: 1.0
 */
@Data
@AllArgsConstructor
public class Player {

    private String name;
    private List<String> cards;
    private Boolean hasPassedFlip;
    private Boolean hasPassedFollow;
    private Boolean finished;
    private Boolean canDiscard;
    private Boolean canFollow;
    private Boolean canFlip;
    private FlowPane pane;
    /**
     * 玩家过掉的牌,再谎报被翻的话为true
     */
    private Map<String, Boolean> passCards;
    /**
     * 已知的其他玩家的牌
     */
    private Map<String, Set<String>> exposedCards;

    @Override
    public String toString() {
        return "Player{" +
                "name='" + name + '\'' +
                ", hasPassedFlip=" + hasPassedFlip +
                ", hasPassedFollow=" + hasPassedFollow +
                ", finished=" + finished +
                ", canDiscard=" + canDiscard +
                ", canFollow=" + canFollow +
                ", canFlip=" + canFlip +
                '}';
    }
}
